package com.tansun.easycare.rule.datamodel.entity;

import com.tansun.easycare.rule.common.entity.RuleBaseEntity;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

/**
 * 规则数据集Entity
 *
 * @author zl
 * @version 2020-02-13
 */
public class RuleDatamodel extends RuleBaseEntity<RuleDatamodel> {

    private static final long serialVersionUID = 1L;
    private String projectCode;        // 规则库编码
    private String name;        // 数据模型名
    private String chzn;        // 中文名
    private String datamodelDesc;        // 描述信息
    private String deleteflag; //删除的标记
    @Length(min = 0, max = 50, message = "规则库编码长度必须介于 0 和 50 之间")
    public String getProjectCode() {
        return projectCode;
    }

    public void setProjectCode(String projectCode) {
        this.projectCode = projectCode;
    }
    @Length(min = 0, max = 50, message = "数据集名长度必须介于 0 和 50 之间")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    @Length(min = 0, max = 150, message = "中文名长度必须介于 0 和 150 之间")
    public String getChzn() {
        return chzn;
    }

    public void setChzn(String chzn) {
        this.chzn = chzn;
    }

    public String getDatamodelDesc() {
        return datamodelDesc;
    }

    public void setDatamodelDesc(String datamodelDesc) {
        this.datamodelDesc = datamodelDesc;
    }

    public String getDeleteflag() {
        return deleteflag;
    }

    public void setDeleteflag(String deleteflag) {
        this.deleteflag = deleteflag;
    }
}